Skip to content

Instantly share code, notes, and snippets.

struct to get information about a file using FileAttributeKey

import Foundation

struct FileAttributesManager {
    
    // MARK: - Error Define
    
    enum FileAttributesError: Error {
@bmaupin
bmaupin / free-database-hosting.md
Last active May 18, 2024 12:23
Free database hosting
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 18, 2024 12:05
responsively v1.5.0 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2624415406-1757889142-1921779257-1000</user>
<keys>
<key installerType="Custom" displayName="ResponsivelyApp 1.5.0" displayVersion="1.5.0">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\66895ec6-7466-5944-9771-f3890b5b637c</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\vagrant\AppData\Local\Programs\ResponsivelyApp\Uninstall ResponsivelyApp.exe" /currentuser /S]]></UninstallString>
@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active May 18, 2024 12:22
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

(Rock) Superstar : Cypress Hill
07 Seven : Full Fathom Five
1 Giant Leap : My Culture
1/2 Loving : Abbie Cardwell
10 Years : One Dollar Short
100 Million Ways : Nash
180 Yabaho : Not From There
19-2000 : Gorillaz
2 Faced : Superheist
2 Months Off : Underworld
@LinusHenze
LinusHenze / iOS_16_Launch_Constraints.txt
Created June 15, 2022 16:30
Description of the Launch Constraints introduced in iOS 16
iOS 16 introduced launch constraints, which can be used to constraint the launch of an application.
There are three types of constraints:
Self Constraints, which the launched application itself must meet
Parent Constraints, which the parent process must meet
Responsible Constraints, which the "responsible process" must meet (I assume that the responsible process is the process that asked launchd to launch a service)
Additionally, the TrustCache format was updated (see below) to support assigning each binary a "Constraint Category", which forces Self and Parent Constraints.
Note that Self, Parent and Responsible Constraints can also be set by the process performing the launch and they can be included in the code signature, in the new blob type 0xFADE8181. In both cases, the constraints are DER encoded (just like the DER entitlements).
Constraint Categories (from TrustCache, new in version 2):
@alangrainger
alangrainger / ____script_ Review old notes.js
Last active May 18, 2024 12:17
Templater script for Obsidian, to find and review old notes
<%*
/* === Installation ===
*
* 1. Make sure you have both Templater and Dataview installed.
* 2. Create a new template note.
* 3. Copy and paste the full code from this file you're reading.
* 4. Launch the script by using the Templater command "Open Insert Template modal".
* 5. Optional, assign this script to a hotkey using the Templater settings page.
*
* v1.0.4
@josemmo
josemmo / repair-mysql-data.ps1
Created August 28, 2020 18:48
Repair MySQL data directory (for XAMPP)
# Based on this answer: https://stackoverflow.com/a/61859561/1956278
# Backup old data
Rename-Item -Path "./data" -NewName "./data_old"
# Create new data directory
Copy-Item -Path "./backup" -Destination "./data" -Recurse
Remove-Item "./data/test" -Recurse
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse
@lopspower
lopspower / README.md
Last active May 18, 2024 12:14
All Android Directory Path

All Android Directory Path

Twitter

1) System directories

⚠️ We can't write to these folers

Method Result
@zchee
zchee / cgo.md
Last active May 18, 2024 12:13
cgo convert list

See also, http://libraryofalexandria.io/cgo/

Using Go cgo

cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.

So, Here collect materials.